package com.wps.wdztv6.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Builder;
import lombok.Data;

//@TableName("third_file")
@Table("third_file")
@Data
@Builder
public class ThirdFile {
    /**
     * 每一个文件版本 一个值
     */
    //@TableId(value = "id",type = IdType.INPUT)
    @Id(keyType = KeyType.None) //代码层用户手动设置
    private String id;

    //@TableField("name")
    //@Column(value = "name")
    private String name;

    //@TableField("size")
    private Long size;

    //@TableField("version")
    private Integer version;

    //@TableField("create_time")
    @JSONField(name="create_time")
    private Long createTime;

    //@TableField("update_time")
    @JSONField(name="update_time")
    private Long updateTime;

    /**
     * 同一个文件 都是同一个值
     */
    //@TableField("group_file_id")
    @JSONField(name="group_file_id")
    private String groupFileId;
}
